<?php //pack11class

class DocumentsManager {
    
    public static $defLanguage="lang2";

    public static function getDocument($id) {
        $document=MySQLGet::process("Select * from ".MySQL::TABLE_DOCUMENTS." where `id`=".$id.";");
        if(!$document) return false;
        $doc=new Document();
        $doc->setData($document);
        return $doc;
    }

    public static function setDocument() {
        $document=MySQLGet::process("Select * from ".MySQL::TABLE_DOCUMENTS." where `id`=".$id.";");
        if(!$document) return false;
        $doc=new Document();
        $doc->setData($document);
        return $doc;
    }

}

?>
